//
//  MYShopGoodsCollViewCell.swift
//  MuYing
//
//  Created by tbb on 2019/8/22.
//  Copyright © 2019 TBB. All rights reserved.
//

import UIKit

class MYShopGoodsCollViewCell: UICollectionViewCell {

    lazy var goodsIcon: UIImageView = {
        let goodsIcon = UIImageView(image: UIImage(named: "show_banner_test_icon"));
        goodsIcon.backgroundColor = appThemeColor;
        return goodsIcon;
    }()
    
    lazy var titleLb: UILabel = {
        let titleLb = UILabel();
        titleLb.textAlignment = .center;
        titleLb.font = UIFont.systemFont(ofSize: 10, weight: .medium)
        titleLb.textColor = UIColorFromHex(rgbValue: 0xA0A0A0);
        titleLb.text = "---";
        titleLb.backgroundColor = UIColor.clear;
        return titleLb;
    }()
    
    override func layoutSubviews() {
        super.layoutSubviews();
        self.contentView.backgroundColor = .white
        self.backgroundColor = .white;
        self.contentView.addSubview(self.goodsIcon);
        self.goodsIcon.mas_makeConstraints { (make) in
            make?.top.mas_equalTo()(0);
            make?.left.mas_equalTo()(0);
            make?.right.mas_equalTo()(0);
            make?.height.mas_equalTo()(self.width);
        }
        
        self.contentView.addSubview(self.titleLb);
        self.titleLb.mas_makeConstraints { (make) in
            make?.top.mas_equalTo()(self.goodsIcon.mas_bottom)?.mas_equalTo()(0);
            make?.left.mas_equalTo()(0);
            make?.right.mas_equalTo()(0);
            make?.height.mas_equalTo()(14);
        }
        
    }
    

}
